package com.baichang.taoshunda.entity.em;

public enum DeliveryBalanceState {

    收入(1), 提现(2);

    private Integer code;

    private DeliveryBalanceState(Integer code) {
        this.code = code;
    }

    public static DeliveryBalanceState valueOfCode(Integer code) {
        DeliveryBalanceState[] states = DeliveryBalanceState.values();
        for (DeliveryBalanceState state : states) {
            if (state.getCode().equals(code)) {
                return state;
            }
        }
        return null;
    }

    public Integer getCode() {
        return this.code;
    }

    @Override
    public String toString() {
        return String.valueOf(this.code);
    }
}
